package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.OrgStaff;
import org.springframework.data.repository.CrudRepository;

public interface OrgStaffDao extends CrudRepository<OrgStaff, Long> {
    OrgStaff findOneByStaffNameAndStaffNoAndOrgId(String sickName, String staffNo, int orgId);

    OrgStaff findOneByStaffNoAndOrgId(String staffNo, int orgId);

    OrgStaff findOneByStaffNoAndOrgIdAndStaffPhone(String staffNo, int orgId, String phone);

}
